package NGUYENTIENDAT.OOP.EX;

public class View {

	public static void main(String[] args) {
		// 1. Khai bao va khoi tao thong tin doi tuong
		UserEntity objUser = new UserEntity();
		objUser.setUserId(1);
		objUser.setFullName("NguyenTienDat");
		objUser.setUserName("Cuongtl");
		objUser.setPassWord("tiendat");

		// 2. Khai bao doi tuong thuoc cua Controllers

		Controller objController = new Controller(objUser);

		// 3. Uy quyen thuc thi nghiep vu
		if (objController.CheckUser()) {
			System.out.println("Chuc mung chuyen gia");
		} else {
			System.out.println("Rat tiec!");
		}
	}

}
